<include file="public@header" />
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:url('Banner/index')}">轮播图管理</a></li>
        <li><a href="{:url('Banner/add')}">轮播图添加</a></li>
    </ul>
    <form method="post" class="js-ajax-form margin-top-20" action="{:url('Banner/ListOrder')}">
        <div class="table-actions" >
            <button class="btn btn-sm btn-primary js-ajax-submit" type="submit">排序</button>
            <button class="btn btn-sm btn-success js-ajax-submit" type="submit"
                    data-action="{:url('Link/toggle',array('display'=>1))}" data-subcheck="true">{:lang('DISPLAY')}
            </button>
            <button class="btn btn-sm btn-danger js-ajax-submit" type="submit"
                    data-action="{:url('Link/toggle',array('hide'=>1))}" data-subcheck="true">{:lang('HIDE')}
            </button>
        </div>
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th width="16"><label><input type="checkbox" class="js-check-all" data-direction="x"
                                             data-checklist="js-check-x"></label></th>
                <th width="80">排序</th>
                <th width="50">ID</th>
                <th>轮播图</th>
                <th>跳转链接</th>
                <th>状态</th>
                <th>创建时间</th>
                <th>修改时间</th>
                <th width="140">操作</th>
            </tr>
            </thead>
            <tbody>
            <php>$user_statuses=array("0"=>lang('USER_STATUS_BLOCKED'),"1"=>lang('USER_STATUS_ACTIVATED'),"2"=>lang('USER_STATUS_UNVERIFIED'));</php>
            <foreach name="banner" item="v">
                <tr>
                    <td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value=""></td>
                    <td ><input style="width: 70px" name='list_orders[{$v.id}]' class="input input-order mr5" type='text'  value='{$v.list_order}'></td>
                    <td>{$v.id}</td>
                    <td><img width="50px" height="50px" src="/upload/{$v.image}"></td>
                    <td>{$v.url}</td>
                    <td>{$v.switch}</td>
                    <td>{$v.create_time}</td>
                    <td>{$v.update_time}</td>
                    <td>
                        <a href="{:url('Banner/edit')}?id={$v.id}" class="btn btn-sm btn-primary js-ajax-submit" type="submit">修改</a>

                        <a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('Banner/del',)}?id={$v.id}">删除</a>

                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <div class="pagination">{$banner->render()}</div>
    </form>
</div>
<script src="__STATIC__/js/admin.js?v={$_static_version}"></script>
</body>
</html>
